3.238 \(\int \frac {1}{(a f+b f x) (c g+d g x) (A+B \log (e (a+b x)^n (c+d x)^{-n}))} \, dx\)

Optimal. Leaf size=47 \[ \frac {\log \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{B f g n (b c-a d)} \]

[Out]

ln(A+B*ln(e*(b*x+a)^n/((d*x+c)^n)))/B/(-a*d+b*c)/f/g/n

________________________________________________________________________________________

Rubi [A]  time = 0.17, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.022, Rules used = {6684} \[ \frac {\log \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{B f g n (b c-a d)} \]

Antiderivative was successfully verified.

[In]

Int[1/((a*f + b*f*x)*(c*g + d*g*x)*(A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n])),x]

[Out]

Log[A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n]]/(B*(b*c - a*d)*f*g*n)

Rule 6684

Int[(u_)/(y_), x_Symbol] :> With[{q = DerivativeDivides[y, u, x]}, Simp[q*Log[RemoveContent[y, x]], x] /;  !Fa
lseQ[q]]

Rubi steps

\begin {align*} \int \frac {1}{(a f+b f x) (c g+d g x) \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )} \, dx &=\frac {\log \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )}{B (b c-a d) f g n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.15, size = 43, normalized size = 0.91 \[ \frac {\log \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{b B c f g n-a B d f g n} \]

Antiderivative was successfully verified.

[In]

Integrate[1/((a*f + b*f*x)*(c*g + d*g*x)*(A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n])),x]

[Out]

Log[A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n]]/(b*B*c*f*g*n - a*B*d*f*g*n)

________________________________________________________________________________________

fricas [A]  time = 0.91, size = 51, normalized size = 1.09 \[ \frac {\log \left (-B n \log \left (b x + a\right ) + B n \log \left (d x + c\right ) - B \log \relax (e) - A\right )}{{\left (B b c - B a d\right )} f g n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*f*x+a*f)/(d*g*x+c*g)/(A+B*log(e*(b*x+a)^n/((d*x+c)^n))),x, algorithm="fricas")

[Out]

log(-B*n*log(b*x + a) + B*n*log(d*x + c) - B*log(e) - A)/((B*b*c - B*a*d)*f*g*n)

________________________________________________________________________________________

giac [A]  time = 0.24, size = 42, normalized size = 0.89 \[ \frac {\log \left (B n \log \left (b x + a\right ) - B n \log \left (d x + c\right ) + A + B\right )}{B b c f g n - B a d f g n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*f*x+a*f)/(d*g*x+c*g)/(A+B*log(e*(b*x+a)^n/((d*x+c)^n))),x, algorithm="giac")

[Out]

log(B*n*log(b*x + a) - B*n*log(d*x + c) + A + B)/(B*b*c*f*g*n - B*a*d*f*g*n)

________________________________________________________________________________________

maple [C]  time = 0.20, size = 374, normalized size = 7.96 \[ -\frac {\ln \left (\ln \left (\left (d x +c \right )^{n}\right )-\frac {-i \pi B \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )+i \pi B \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}-i \pi B \,\mathrm {csgn}\left (i \left (b x +a \right )^{n}\right ) \mathrm {csgn}\left (i \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )+i \pi B \,\mathrm {csgn}\left (i \left (b x +a \right )^{n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}+i \pi B \,\mathrm {csgn}\left (i \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}-i \pi B \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{3}+i \pi B \,\mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2}-i \pi B \mathrm {csgn}\left (i e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{3}+2 B \ln \relax (e )+2 B \ln \left (\left (b x +a \right )^{n}\right )+2 A}{2 B}\right )}{\left (a d -b c \right ) B f g n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*f*x+a*f)/(d*g*x+c*g)/(A+B*ln(e*(b*x+a)^n/((d*x+c)^n))),x)

[Out]

-1/B/f/g/n/(a*d-b*c)*ln(ln((d*x+c)^n)-1/2*(-I*B*Pi*csgn(I*e)*csgn(I*(b*x+a)^n/((d*x+c)^n))*csgn(I*e/((d*x+c)^n
)*(b*x+a)^n)+I*B*Pi*csgn(I*e)*csgn(I*e/((d*x+c)^n)*(b*x+a)^n)^2-I*B*Pi*csgn(I*(b*x+a)^n)*csgn(I/((d*x+c)^n))*c
sgn(I*(b*x+a)^n/((d*x+c)^n))+I*B*Pi*csgn(I*(b*x+a)^n)*csgn(I*(b*x+a)^n/((d*x+c)^n))^2+I*B*Pi*csgn(I/((d*x+c)^n
))*csgn(I*(b*x+a)^n/((d*x+c)^n))^2-I*B*Pi*csgn(I*(b*x+a)^n/((d*x+c)^n))^3+I*B*Pi*csgn(I*(b*x+a)^n/((d*x+c)^n))
*csgn(I*e/((d*x+c)^n)*(b*x+a)^n)^2-I*B*Pi*csgn(I*e/((d*x+c)^n)*(b*x+a)^n)^3+2*B*ln(e)+2*B*ln((b*x+a)^n)+2*A)/B
)

________________________________________________________________________________________

maxima [A]  time = 1.69, size = 53, normalized size = 1.13 \[ \frac {\log \left (-\frac {B \log \left ({\left (b x + a\right )}^{n}\right ) - B \log \left ({\left (d x + c\right )}^{n}\right ) + B \log \relax (e) + A}{B}\right )}{{\left (b c f g n - a d f g n\right )} B} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*f*x+a*f)/(d*g*x+c*g)/(A+B*log(e*(b*x+a)^n/((d*x+c)^n))),x, algorithm="maxima")

[Out]

log(-(B*log((b*x + a)^n) - B*log((d*x + c)^n) + B*log(e) + A)/B)/((b*c*f*g*n - a*d*f*g*n)*B)

________________________________________________________________________________________

mupad [B]  time = 4.43, size = 44, normalized size = 0.94 \[ -\frac {\ln \left (A+B\,\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )\right )}{B\,a\,d\,f\,g\,n-B\,b\,c\,f\,g\,n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((a*f + b*f*x)*(c*g + d*g*x)*(A + B*log((e*(a + b*x)^n)/(c + d*x)^n))),x)

[Out]

-log(A + B*log((e*(a + b*x)^n)/(c + d*x)^n))/(B*a*d*f*g*n - B*b*c*f*g*n)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*f*x+a*f)/(d*g*x+c*g)/(A+B*ln(e*(b*x+a)**n/((d*x+c)**n))),x)

[Out]

Timed out

________________________________________________________________________________________